﻿<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head profile="http://gmpg.org/xfn/11">
<title>DarkForest</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="<spring:url value="/css/style.css"/>" />
<!-- syntaxhighlight -->
<script type="text/javascript" src="<spring:url value="/ckeditor/plugins/syntaxhighlight/scripts/shCore.js"/>"></script>
<script type="text/javascript" src="<spring:url value="/ckeditor/plugins/syntaxhighlight/scripts/shBrushBash.js"/>"></script>
<script type="text/javascript" src="<spring:url value="/ckeditor/plugins/syntaxhighlight/scripts/shBrushCpp.js"/>"></script>
<script type="text/javascript" src="<spring:url value="/ckeditor/plugins/syntaxhighlight/scripts/shBrushCSharp.js"/>"></script>
<script type="text/javascript" src="<spring:url value="/ckeditor/plugins/syntaxhighlight/scripts/shBrushCss.js"/>"></script>
<script type="text/javascript" src="<spring:url value="/ckeditor/plugins/syntaxhighlight/scripts/shBrushDelphi.js"/>"></script>
<script type="text/javascript" src="<spring:url value="/ckeditor/plugins/syntaxhighlight/scripts/shBrushDiff.js"/>"></script>
<script type="text/javascript" src="<spring:url value="/ckeditor/plugins/syntaxhighlight/scripts/shBrushGroovy.js"/>"></script>
<script type="text/javascript" src="<spring:url value="/ckeditor/plugins/syntaxhighlight/scripts/shBrushJava.js"/>"></script>
<script type="text/javascript" src="<spring:url value="/ckeditor/plugins/syntaxhighlight/scripts/shBrushJScript.js"/>"></script>
<script type="text/javascript" src="<spring:url value="/ckeditor/plugins/syntaxhighlight/scripts/shBrushPhp.js"/>"></script>
<script type="text/javascript" src="<spring:url value="/ckeditor/plugins/syntaxhighlight/scripts/shBrushPlain.js"/>"></script>
<script type="text/javascript" src="<spring:url value="/ckeditor/plugins/syntaxhighlight/scripts/shBrushPython.js"/>"></script>
<script type="text/javascript" src="<spring:url value="/ckeditor/plugins/syntaxhighlight/scripts/shBrushRuby.js"/>"></script>
<script type="text/javascript" src="<spring:url value="/ckeditor/plugins/syntaxhighlight/scripts/shBrushScala.js"/>"></script>
<script type="text/javascript" src="<spring:url value="/ckeditor/plugins/syntaxhighlight/scripts/shBrushSql.js"/>"></script>
<script type="text/javascript" src="<spring:url value="/ckeditor/plugins/syntaxhighlight/scripts/shBrushVb.js"/>"></script>
<script type="text/javascript" src="<spring:url value="/ckeditor/plugins/syntaxhighlight/scripts/shBrushXml.js"/>"></script>
<link type="text/css" rel="stylesheet" href="<spring:url value="/ckeditor/plugins/syntaxhighlight/styles/shCore.css"/>"/>
<link type="text/css" rel="stylesheet" href="<spring:url value="/ckeditor/plugins/syntaxhighlight/styles/shThemeDefault.css"/>"/>
<script type="text/javascript">
  SyntaxHighlighter.config.clipboardSwf = '<spring:url value="/ckeditor/plugins/syntaxhighlight/scripts/clipboard.swf"/>';
  SyntaxHighlighter.all();
</script>
</head>
<body>
<div id="bgcontainer">
  <div class="Header">
    <div class="Logo">
      <div class="LogoText">
        <h1><a href="#">DarkForest</a></h1>
      </div>
      <p class="Desc"> </p>
    </div>
    <div class="Syn">
      <ul>
        <li><a href="#">Entries</a> (RSS) <a href="#">Comments</a> (RSS)</li>
      </ul>
    </div>
    <div class="clr"></div>
    <div class="Menu">
      <ul>
        <li><a href="<spring:url value="/blog.do"/>" class="active">Home</a></li>
        <li><a href="about-us.html">About Us</a></li>
        <li><a href="archives.html">Archives</a></li>
        <li><a href="contact-us.html">Contact Us</a></li>
      </ul>
    </div>
    <div class="clr"></div>
  </div>
  <div class="CON">
    <div class="SC">
      <div class="SC_f">
        <div class="SC_bg">
          <c:forEach items="${blogs }" var="blog">
            <div class="Post" id="blog-<c:out value="${blog.keyString }"/>">
            <div class="PostHead">
              <h2><a href="#"><c:out value="${blog.title }"/></a></h2>
              <div class="PostTime">Posted on  <strong><c:out value="${blog.blogTime }"/></strong> <small class="PostAuthor"> - by mylxiaoyi </small> <small class="PostCat">In: <a href="<spring:url value="/blog.do?action=category&key=${blog.category.keyString }"/>"><c:out value="${blog.category }"/></a> </small> </div>
              <div class="clr"></div>
            </div>
            <div class="PostContent">
              <c:out escapeXml="false" value="${blog.body }"/>
            </div>
            <div class="PostCom">
              <ul>
                <li class="Com"> <a href="#">9 Comments</a> </li>
              </ul>
            </div>
            </div>
          </c:forEach>         
          <div class='Nav'><span>Pages (<c:out value="${pages }"/>): </span>
            <c:forEach begin="1" end="${pages }" step="1" var="page">
                <a href="<spring:url value="/blog.do?action=page&page=${page }"/>"><c:out value="${page }"/></a>
            </c:forEach>
          </div>
        </div>
      </div>
    </div>
    <div class="SR">
      <div class="SRR">
        <div class="widget widget_categories">
          <h2>Categories</h2>
          <ul>
            <c:forEach items="${categories }" var="category">
                <li><a href="<spring:url value="/blog.do?action=category&key=${category.keyString }"/>"><c:out value="${category.name }"/></a></li>
            </c:forEach>         
          </ul>
        </div>
        <div class="widget widget_archives">
          <h2>Archives</h2>
          <ul>
            <li><a href="#">August 2008</a></li>
          </ul>
        </div>
        <div class="widget widget_links">
          <h2>Links</h2>
          <ul>
            <c:forEach items="${links }" var="link">
                <li><a href="<c:out value="${link.url }"/>" target="_blank"><c:out value="${link.title }"/></a></li>
            </c:forEach>
          </ul>
        </div>
        <div class="widget widget_meta">
          <h2>Meta</h2>
          <ul>
            <li><a href="admin.do">Log in</a> </li>
            <li><a href="http://validator.w3.org/check/referer">Valid <abbr title="eXtensible HyperText Markup Language">XHTML</abbr></a></li>
            <li><a href="http://gmpg.org/xfn/"><abbr title="XHTML Friends Network">XFN</abbr></a></li>
          </ul>
        </div>
        <div class="Search">
          <form href="#" method="post">
            <h2>Search</h2>
            <input type="text" name="s" class="keyword" />
            <div class="bt">
              <input name="submit" type="submit" class="search" title="Search" alt="Search" value="Go" />
            </div>
          </form>
          <div class="clr"></div>
        </div>
      </div>
    </div>
    <div class="clr"></div>
  </div>
  <div class="FBG">
    <div class="Footer">
      <p><big><strong>&copy; 2008 My Web Blog</strong></big><br /></strong></p>
    </div>
  </div>
</div>
</body>
</html>